package com.cskaoyan.mapper;

import com.cskaoyan.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User query(int id);
//1.添加一条信息
    int addInfo(@Param("user") User user);

    User selectByName(@Param("name") String name);
    //将查询依据封装为User查询User集合
    List<User> selectUserByUser(@Param("user") User user);
    //插入User
    int insertUser5(@Param("user") User user);

    int insertUsers(@Param("users") List<User> users);


}